package cn.zhf.shop.service.impl;

import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import cn.zhf.shop.entity.ShoppingOrder;
import cn.zhf.shop.mapper.ShoppingOrderMapper;
import cn.zhf.shop.service.ShoppingOrderService;

@Service
public class ShoppingOrderServiceImpl implements ShoppingOrderService {

    @Resource
    private ShoppingOrderMapper shoppingOrderMapper;

    @Override
    public int deleteByPrimaryKey(String shoppingOrderId) {
        return shoppingOrderMapper.deleteByPrimaryKey(shoppingOrderId);
    }

    @Override
    public int insert(ShoppingOrder record) {
        return shoppingOrderMapper.insert(record);
    }

    @Override
    public int insertSelective(ShoppingOrder record) {
        return shoppingOrderMapper.insertSelective(record);
    }

    @Override
    public ShoppingOrder selectByPrimaryKey(String shoppingOrderId) {
        return shoppingOrderMapper.selectByPrimaryKey(shoppingOrderId);
    }

    @Override
    public int updateByPrimaryKeySelective(ShoppingOrder record) {
        return shoppingOrderMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(ShoppingOrder record) {
        return shoppingOrderMapper.updateByPrimaryKey(record);
    }

}

